package com.lvcoding.oauth2.authorization.code.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("test")
@RestController
public class TestController {

    @GetMapping("needAuth")
    public String needAuth() {
        return "这是一个需要授权才能看的资源";
    }
}
